package com.le.tester.book.concurrentchallenge.threadpool8;


/**
 * createTime：2025-04-15 9:07
 * description：定制线程工厂
 */
public class MyThreadFactory implements ThreadFactory {

    public final String poolName;

    public MyThreadFactory(String poolName) {
        this.poolName = poolName;
    }

    @Override
    public Thread newThread(Runnable r) {
        return new MyAppThread(r, poolName);
    }
}
